<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent pageFormContent">
            <tr>
                <td><@label key='service_name.C,colon'>服务名称：</@label></td>
                <td><input type="text" name="serviceName" value="${condition.serviceName!''}"/></td>
                <td><@label key='service_code.C,colon'>服务标识：</@label></td>
                <td><input type="text" name="serviceCode" value="${condition.serviceCode!''}"/></td>
                <td><@label key='service_status.C,colon'>状态：</@label></td>
                <td><select name="status">
                    <option value="" ><@label key='all.C'>所有</@label></option>
                    <option value="0" <#if condition.status?? && condition.status == '0'> selected</#if>><@label key='enable.C'>启用</@label></option>
                    <option value="1" <#if condition.status?? && condition.status == '1'> selected</#if>><@label key='disable.C'>禁用</@label></option>
                </select></td>
                <td><@label key='serviceType.C,colon'>服务类型：</@label></td>
                <td>
	                <select name="type">   
	                	<option value="" ><@label key='all.C'>所有</@label></option>             
	                    <#if ecodes??> 
	                       <#list ecodes as ecode>
					 	     <option value="${ecode.eCode!''}" <#if condition.type ==ecode.eCode> selected</#if>>${ecode.eCodeText!''}</option> 
					 	   </#list> 
				 	   </#if>
	            	</select>
                </td>
                <td><div class="buttonActive"><div class="buttonContent"><button type="submit"><@label key='query.B'>查询</@label></button></div></div></td>
                </tr>
        </table>
    </div>
</div>
</form>

<div class="pageContent">

    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="service_add" labelKey="add.B" defalutName="新增">
            <li><a class="add" target="dialog" mask="true"  width="750" height="380" 
            href="${rc.getContextPath()}/manage/service/addService?navTabId=${navTabId!''}"><span><@label key="add.B">新增</@label></span></a></li></@buttonRight>
            <@buttonRight menuCode="service_edit" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" target="dialog" mask="true" width="750" height="380" 
            href="${rc.getContextPath()}/manage/service/modifyService?id={service_id}&navTabId=${navTabId!''}"><span><@label key="edit.B">编辑</@label></span></a></li></@buttonRight>
            <@buttonRight menuCode="service_view" labelKey="view.B" defalutName="详情">
            <li><a class="icon" target="dialog" mask="true" width="750" height="380" 
            href="${rc.getContextPath()}/manage/service/viewService?id={service_id}&navTabId=${navTabId!''}"><span><@label key="view.B">详情</@label></span></a></li></@buttonRight>
            <@buttonRight menuCode="service_viewProcess" labelKey="view_process.B" defalutName="查看流程">
            <li><a class="edit" target="dialog" mask="true" width="750" height="380" 
            href="${rc.getContextPath()}/manage/service/viewProcess?id={service_id}&navTabId=${navTabId!''}"><span><@label key='view_process.B'>查看流程</@label></span></a></li></@buttonRight>
            <@buttonRight menuCode="service_test" labelKey="Test.B" defalutName="测试">
            <li><a class="test" target="dialog" mask="true" width="750" height="500"
            href="${rc.getContextPath()}/manage/service/testService?id={service_id}&navTabId=${navTabId!''}"><span><@label key="Test.B">测试</@label></span></a></li></@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="135">
        <thead>
            <tr>
                <th width="100" orderField="serviceName" ><@label key='service_name.C'>服务名称</@label></th>
                <th width="100" orderField="serviceCode"><@label key='service_code.C'>服务标识</@label></th>
                <th width="100" orderField="bizPackage"><@label key='service_bizPackage.C'>所属包</@label></th>
                <th width="80" ><@label key='serviceType.C'>服务类型</@label></th>
                <th width="50" orderField="status"><@label key='service_status.C'>状态</@label></th>
                <th width="50" orderField="createUser"><@label key='createUser.C'>创建人</@label></th>
                <th width="50" orderField="createDate"><@label key='createDateTime.C'>创建时间</@label></th>
                <th width="50" orderField="modifyUser"><@label key='modifyUser.C'>修改人</@label></th>
                <th width="50" orderField="modifyDate"><@label key='modifyDateTime.C'>修改时间</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as service>
            <tr target="service_id" rel="${service.id!''}">
                <td>${service.serviceName!''}</td>
                <td>${service.serviceCode!''}</td>
                <td>${service.bizPackage!''}</td>
                <td><#if ecodes??>
                    <#list ecodes as ecode>
                        <#if service.type == ecode.eCode>${ecode.eCodeText!''}<#break></#if>
                    </#list>
                </#if>
                </td>
                <td><#if service.status == '0'><@label key='enable.C'>启用</@label><#else><@label key='disable.C'>禁用</@label></#if></td>
                <td>${service.createUser!''}</td>
                <td>${(service.createDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                <td>${service.modifyUser!''}</td>
                <td>${(service.modifyDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
            </tr>
        </#list>
        <#else>
        <tr target="service_id">
                <td colspan="8" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        <#else>
        <tr target="service_id">
                <td colspan="8" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
        <#include "/common/panelBar.html">
</div>